<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="/Templates/Template.xhtml">
	<ui:define name="title">Accueil</ui:define>

	<ui:define name="contenu">

		<c:choose>
			<c:when test="#{loginBean.exist()}">
				<center>
					<p:outputLabel
						value="Bienvenue #{loginBean.e.nom} #{loginBean.e.prenom}"
						style="font-weight:bold;color:black" />

					<h:form>
						<p:imageSwitch effect="fade" slideshowSpeed="3000">
							<ui:repeat value="#{imageSwitchBean.images}" var="image">
								<p:graphicImage value="../resources/images/#{image}"
									height="300px" width="400px" />
							</ui:repeat>
						</p:imageSwitch>
						<script language="javascript">
//  var name ='Seddik Omar';


// var doc = new jsPDF();
// doc.setFontSize(22);	
// doc.text(20, 20, 'Questions');
// doc.setFontSize(16);
// doc.text(20, 30, 'This belongs to: ' + name);


// doc.addPage();
// doc.setFontSize(22);
// doc.text(20, 20, 'Answers');
// doc.setFontSize(16);
// doc.print();




// // You wouldn't normally call this - this is just to make the 
// // demo not look broken as we've disabled auto update.
// if (jsPDFEditor !== undefined) {
// 	jsPDFEditor.update(true);
// }

</script>
					</h:form>
				</center>
			</c:when>
			<c:otherwise>
				<script language="javascript"><!--
location.replace("Login.jsf")
//-->
</script>
			</c:otherwise>
		</c:choose>
	</ui:define>
</ui:composition>
</html>